<template>
	<view>
		<bg-tab :current="current" :tabs="tabs" @tab-change="tabChange"></bg-tab>
		<VerifyDetail :propUserId="userId" v-show="current==0" ></VerifyDetail>
		<EnterDetail :propId="entryId" v-show="current==1"></EnterDetail>
	</view>
</template>

<script>
	import VerifyDetail  from '@/pages/enter/verify/detail.vue'
	import EnterDetail from '@/pages/enter/enter/detail.vue'
	export default {
		components:{VerifyDetail, EnterDetail},
		data() {
			return {
				userId:'',
				entryId:'',
				current:0,
				tabs:[
					"实名信息", "入场信息"
				]
			}
		},
		onLoad(options){
			this.userId = options.userId
			this.entryId = options.entryId
		},
		methods: {
			tabChange(idx){
				this.current = idx;
			}
		}
	}
</script>

<style>

</style>
